using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using PlugNT.Safe;
using PlugNT.Custom;
using PlugNT.Cms.Model;
//5^1^a^s^p^x
namespace PlugNT.Cms.BLL
{
    public class GroupAdmin
    {
        private static readonly PlugNT.Cms.DAL.GroupAdmin dal = new PlugNT.Cms.DAL.GroupAdmin();






        public GroupAdminInfo GetGroupAdminInfo(string power)
        {
            return dal.GetGroupAdminInfo(StringHelper.SqlFilter(power));
        }

        public string GetName(string power)
        {
            return dal.GetName(StringHelper.SqlFilter(power));
        }

        public string GetCodeList(string power)
        {
            return dal.GetCodeList(StringHelper.SqlFilter(power));
        }






        public DataTable GetGroupAdminTable(string power)
        {
            return dal.GetGroupAdminTable(StringHelper.SqlFilter(power));
        }









        public bool Add(GroupAdminInfo model)
        {
            return dal.Add(model);
        }






        public bool Update(GroupAdminInfo model)
        {
            return dal.Update(model);
        }






        public bool Delete(string power)
        {
            return dal.Delete(StringHelper.SqlFilter(power));
        }

        public bool Delete(int id)
        {
            return dal.Delete(id);
        }



        public DataTable GetList()
        {
            return dal.GetList("");
        }

        public DataTable GetPowerList()
        {
            return dal.GetPowerList("");
        }





















    }
}
